package com.kkb.pojo;

import com.fasterxml.jackson.annotation.JsonFormat;
import org.springframework.format.annotation.DateTimeFormat;

import java.util.Date;
import java.util.List;

public class Hospitalization {
    private Integer id;

    private Integer patientId;

    public HosRegister getPatient() {
        return patient;
    }

    public void setPatient(HosRegister patient) {
        this.patient = patient;
    }


    public List<PricePeople> getPricePeople() {
        return pricePeople;
    }

    public void setPricePeople(List<PricePeople> pricePeople) {
        this.pricePeople = pricePeople;
    }

    private List<PricePeople> pricePeople;


    private HosRegister patient;

    private String bedId;

    private Double deposit;

    public String getRemark() {
        return remark;
    }

    public void setRemark(String remark) {
        this.remark = remark;
    }

    private String remark;

    @DateTimeFormat(pattern = "yyyy-MM-dd HH:mm:ss")
    @JsonFormat(shape = JsonFormat.Shape.STRING,pattern = "yyyy-MM-dd HH:mm:ss",timezone = "GMT+8")
    private Date inTime;

    private Integer paidState;

    private String illness;

    private Integer state;

    public Integer getId() {
        return id;
    }

    public void setId(Integer id) {
        this.id = id;
    }

    public Integer getPatientId() {
        return patientId;
    }

    public void setPatientId(Integer patientId) {
        this.patientId = patientId;
    }

    public String getBedId() {
        return bedId;
    }

    public void setBedId(String bedId) {
        this.bedId = bedId == null ? null : bedId.trim();
    }

    public Double getDeposit() {
        return deposit;
    }

    public void setDeposit(Double deposit) {
        this.deposit = deposit;
    }

    public Date getInTime() {
        return inTime;
    }

    public void setInTime(Date inTime) {
        this.inTime = inTime == null ? null : inTime;
    }

    public Integer getPaidState() {
        return paidState;
    }

    public void setPaidState(Integer paidState) {
        this.paidState = paidState;
    }

    public String getIllness() {
        return illness;
    }

    public void setIllness(String illness) {
        this.illness = illness == null ? null : illness.trim();
    }

    public Integer getState() {
        return state;
    }

    public void setState(Integer state) {
        this.state = state;
    }
}